package com.liuxinlong.modules.common.controller.request;

import lombok.Data;

/**
 * 通用查询体
 * 
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2021-12-28
 *
 */
@Data
public class BaseReq {
	/**
	 * 数据起始页码
	 */
	private int currentPage = 1;
	
	/**
	 * 单页数据数
	 */
	private int pageSize = 10;
	
	/**
	 * 数据起始值
	 */
	private int startNum;
	
	public int getStartNum() {
		return this.pageSize * (this.currentPage - 1);
	}
}
